package com.car.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.car.model.common.dtos.ResponseResult;
import com.car.model.component.dtos.ComClassifyDto;
import com.car.model.component.pojos.ComClassify;


public interface ComClassifyService extends IService<ComClassify> {
    /**
     * 根据条件分页查询
     * @return
     */
    ResponseResult findByPage(ComClassifyDto dto);

    /**
     * 修改配件分类
     * @param classify
     * @return
     */
    ResponseResult updateClassify(ComClassify classify);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 新增配件分类
     * @param classify
     * @return
     */
    ResponseResult saveClassify(ComClassify classify);
}
